package com.lsp.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


/*
 * @Description  封装页面所有可能传入过来的查询条件
 * @param keyword='小米'&catalog3Id=3&sort=saleCount_asc&hasStock=0/1&brandId=1&brandId=2&attrs=1_其他:安卓&attrs=2_5寸：2寸
 *
 * @return
 * @author liusupeng
 * @date 2020/10/18 16:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SearchParam {

    private String keyword;//页面传来的全文匹配关键字

    private  Long catalog3Id;//三级分类ID

    /*
         sort=saleCount_asc/desc
         sort=skuPrive_asc/desc
         sort=hotScore_asc/desc
     */
    private String sort;//排序条件

    /*
     *好多的过滤条件
     * 是否有货
     * hasStock(是否有货、skuPrice区间、brandId、catalog3Id、attrs
     * hasStock=0/1
     * skuPrice=1_500/ _500/500_
     *brandId=1
     * */
    private Integer hasStock=1;//是否显示有货(0无库存 1有库存)

    private String skuPrice;//价格区间

    private List<Long> brandId;//品牌，可以多选

    private List<String> attrs;//按照属性来去筛选

    private Integer page;//页码

    private String _queryString; // 查询字符串






}
